package com.mj.mes.messages;

import com.mj.mes.utils.DateUtil;

import java.util.Map;

/**
 * author : cRyann
 * @param <T>
 * @create 2017-10-10
 **/
public class Messages<T> {
    private String from;
    private String to;
    private String transactionId = DateUtil.getTransactionId();
    private String code;
    private String messageName;
    private T body;
    private Map<String, Object> returnDate;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessageName() {
        return messageName;
    }

    public void setMessageName(String messageName) {
        this.messageName = messageName;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public Map<String, Object> getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Map<String, Object> returnDate) {
        this.returnDate = returnDate;
    }
}
